package com.printeverywhere.dto;



/**
 * GroupuserId entity. @author MyEclipse Persistence Tools
 */

public class GroupuserId  implements java.io.Serializable {


    // Fields

     private Groups groups;
     private User user;


    // Constructors

    /** default constructor */
    public GroupuserId() {
    }


    /** full constructor */
    public GroupuserId(Groups groups, User user) {
        this.groups = groups;
        this.user = user;
    }


    // Property accessors

    public Groups getGroups() {
        return this.groups;
    }

    public void setGroups(Groups groups) {
        this.groups = groups;
    }

    public User getUser() {
        return this.user;
    }

    public void setUser(User user) {
        this.user = user;
    }




   public boolean equals(Object other) {
         if ( (this == other ) ) return true;
		 if ( (other == null ) ) return false;
		 if ( !(other instanceof GroupuserId) ) return false;
		 GroupuserId castOther = ( GroupuserId ) other;

		 return ( (this.getGroups()==castOther.getGroups()) || ( this.getGroups()!=null && castOther.getGroups()!=null && this.getGroups().equals(castOther.getGroups()) ) )
 && ( (this.getUser()==castOther.getUser()) || ( this.getUser()!=null && castOther.getUser()!=null && this.getUser().equals(castOther.getUser()) ) );
   }

   public int hashCode() {
         int result = 17;

         result = 37 * result + ( getGroups() == null ? 0 : this.getGroups().hashCode() );
         result = 37 * result + ( getUser() == null ? 0 : this.getUser().hashCode() );
         return result;
   }





}